package com.dai.zhenfujin.my.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.dai.zhenfujin.R;
import com.dai.zhenfujin.base.BaseActivity;
import com.dai.zhenfujin.my.activity.attestation.PersonalActivity;

/**
 * 认证页面
 */
public class AttestationActivity extends BaseActivity implements View.OnClickListener{

    private TextView tvName;
    private RelativeLayout rlPersonal,rlEnterprise;
    private ImageView imageView;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_attestation);
        initView();



    }

    private void initView() {
        tvName = findViewById(R.id.title_textview);
        imageView = findViewById(R.id.title_imageview);
        rlPersonal = findViewById(R.id.attestation_personal);
        rlEnterprise = findViewById(R.id.attestation_enterprise);

        tvName.setText("认证");

        imageView.setOnClickListener(this);
        rlPersonal.setOnClickListener(this);
        rlEnterprise.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.title_imageview://返回
                finish();
                break;
            case R.id.attestation_personal://个人认证
                Intent personal = new Intent(this,PersonalActivity.class);
                startActivity(personal);
                break;
            case R.id.attestation_enterprise://企业认证
                Intent company = new Intent(this,CompanyActivity.class);
                startActivity(company);
                break;
        }
    }
}
